<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"     content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="UTF-8" />
<title>BugFree Open API</title>
<script>
var resize = function() {
    var height = document.documentElement.clientHeight - 61;
    height = (height < 300) ? 300 : height;
    document.getElementById("main").style.height = height + "px";
}
</script>
<style>
* { word-wrap: break-word; }
body, td, input, textarea, select, button { word-break: break-all; color: #000; font: 14px/1.6em Tahoma,Verdana; }
body, ul, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset { margin: 0; padding: 0;}
h1{ font-size: 1.6em;}
h2{ font-size: 1.4em; padding: 5px; background: #E0E0E0;}
h3{ font-size: 1.0em;}
html{height: 100%;}
div#top {
    height:30px;
    background: #9999CC;
    text-align: left;
    padding: 10px;
    line-height: 30px;
    border-bottom: 1px solid #000000;
    min-width: 1024px;
}
div#content {
    background: #F0F0F0;
    min-width: 1024px;
}
div#nav {
    float: left;
    padding: 5px 0px 5px 5px;
    width: 181px;
}
div#main {
    background: #FFFFFF;
    margin-left: 186px;
    padding: 5px;
    border-left: 1px dotted #000000;
    overflow-y: auto;
}
p.para {
    padding: 0px 0px 10px 0px;
}
table {
    border-collapse:collapse;
    border-spacing:0;
    margin:3px 0 26px 0px;
    width:100%;
    text-align: left;
}
table th {
    border: 1px solid #CCCCCC;
    background: #DEE8F1;
    text-align: left;
    font-weight:bold;
    padding:3px 5px;
}
table td {
    border: 1px solid #CCCCCC;
    padding:3px 5px;
}
div.code {
    background: #CFCFCF;
    padding: 5px;
    margin: 0;
}
span {
    color: GREEN;
}
ul {margin-left: 10px;}
li {list-style: inside;}
</style>
</head>
<body onload="resize();" onresize="resize();">
  <div id="top"><h1>BugFree Open API</h1></div>
  <div id="content">
    <div id="nav">
      <ul>
        <li><a href="#getsid">getsid</a></li>
        <li><a href="#login">login</a></li>
        <li><a href="#getbug">getbug</a></li>
        <li><a href="#getcase">getcase</a></li>
        <li><a href="#getresult">getresult</a></li>
        <li><a href="#addbug">addbug</a></li>
        <li><a href="#addcase">addcase</a></li>
        <li><a href="#addresult">addresult</a></li>
        <li><a href="#updatebug">updatebug</a></li>
        <li><a href="#updatecase">updatecase</a></li>
        <li><a href="#updateresult">updateresult</a></li>
        <li><a href="#getquery">getquery</a></li>
        <li><a href="#query">query</a></li>
      </ul>
    </div>
    <div id="main">
      <!-- getsid div-->
      <div>
        <h2><a name="getsid">getsid</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">向BugFree系统获取一个session会话，为后面的方法提供保持会话的session。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>getsid</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
          </table>
          <h3>返回结果</h3>
          <table>
            <tr>
              <th width="20%">名称</th>
              <th width="20%">类型</th>
              <th width="20%">示例值</th>
              <th width="45%">描述</th>
            </tr>
            <tr>
              <td>sessionname</td>
              <td>String</td>
              <td>PHPSESSID</td>
              <td>Session名称</td>
            </tr>
            <tr>
              <td>sessionid</td>
              <td>String</td>
              <td>72iltnrjsjph6nm8rmsru4nbd2</td>
              <td>Session ID</td>
            </tr>
            <tr>
              <td>rand</td>
              <td>String</td>
              <td>dd02a</td>
              <td>随机码，用于生成用户验证码</td>
            </tr>
            <tr>
              <td>status</td>
              <td>String</td>
              <td>success</td>
              <td>API执行结果状态</td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code"><span class="comment">#支持POST</span><br/>http://bugfree/api.php?mode=getsid&amp;format=json&amp;charset=utf8</div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">{"sessionname":"PHPSESSID","sessionid":"72iltnrjsjph6nm8rmsru4nbd2","rand":"dd02a","status":"success"}</div>
          <p>CSV数据格式:</p>
          <div class="code">successsessionnamesessionidrandPHPSESSID72iltnrjsjph6nm8rmsru4nbd2dd02a8416899e7e348faceab85b9870b05485</div>
        </div>
      </div>
      <!-- end getsid div -->
      <hr/>
      <!-- login div -->
      <div>
        <h2><a name="login">login</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">使用用户名和加密后的密码登陆BugFree系统。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>login</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
            <tr>
              <td>$sesseionname</td>
              <td>String</td>
              <td>必须</td>
              <td>以getsid取得的sessionname为键名，sessionid为键值</td>
              <td>$sessionid</td>
              <td></td>
            </tr>
          </table>
          <h3>应用级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>username</td>
              <td>String</td>
              <td>必须</td>
              <td>用户登录名</td>
              <td>administrator</td>
              <td></td>
            </tr>
            <tr>
              <td>auth</td>
              <td>String</td>
              <td>必须</td>
              <td>认证码。<div class="code"><span class="comment">#加密算法：</span><br/>$auth = md5(md5($username.md5($password)).API_KEY.$rand)</div>其中$username为用户名，$password为该用户的明文密码，$rand为getsid方法获得的rand值。
              </td>
              <td>0de98aa1004345b30489b3195701fb71</td>
              <td></td>
            </tr>
          </table>
          <h3>返回结果</h3>
          <table>
            <tr>
              <th width="20%">名称</th>
              <th width="20%">类型</th>
              <th width="20%">示例值</th>
              <th width="45%">描述</th>
            </tr>
            <tr>
              <td>timeout</td>
              <td>String</td>
              <td>1286790253</td>
              <td>Session过期时间</td>
            </tr>
            <tr>
              <td>status</td>
              <td>String</td>
              <td>success</td>
              <td>API执行结果状态</td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code">
            <span class="comment">
            #支持Post<br/>
            #via getsid<br/>
            #  sesseionname = PHPSESSID<br/>
            #  sessionid = 72iltnrjsjph6nm8rmsru4nbd2<br/>
            #  rand = dd02a<br/>
            #auth = md5(md5($username.md5($password)).API_KEY.$rand)
            </span>
            <br/>
            http://bugfree/api.php?mode=login&amp;format=json&amp;charset=utf8&amp;PHPSESSID=72iltnrjsjph6nm8rmsru4nbd2&amp;username=admin&amp;auth=315ba56f2dba87b280e6835074fb2925
          </div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">{"timeout":1286790253,"status":"success"}</div>
          <p>CSV数据格式:</p>
          <div class="code">successtimeout12867903920de98aa1004345b30489b3195701fb71</div>
        </div>
      </div>
      <!-- end login div -->
      <hr/>
      <!-- getbug div -->
      <div>
        <h2><a name="getbug">getbug</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">获得Bug信息。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>getbug</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
            <tr>
              <td>$sesseionname</td>
              <td>String</td>
              <td>必须</td>
              <td>以getsid取得的sessionname为键名，sessionid为键值</td>
              <td>$sessionid</td>
              <td></td>
            </tr>
          </table>
          <h3>应用级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>BugID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>bug的主键</td>
              <td>1</td>
              <td></td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code">
            <span class="comment">
            #支持Post
            </span>
            <br/>
            http://bugfree/api.php?mode=getbug&amp;format=json&amp;charset=utf8&amp;PHPSESSID=72iltnrjsjph6nm8rmsru4nbd2&amp;BugID=1
          </div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">{"BugID":"52999","ProjectID":"24","ProjectName":"SampleProject","ModuleID":"1242","ModulePath":"\/Test Bug\/subitem\/test\/test2","BugTitle":"Test Bug\u6a21\u5757\u7684BUG\u7531\u975e\u70df\u63d0\u4ea4\u7ed9\u975e\u70df","BugSeverity":"3","BugPriority":"4","BugType":"NewFeature","BugOS":"","BugBrowser":"","BugMachine":"","HowFound":"SpecReview","ReproSteps":"[\u6b65\u9aa4]\r\n1.\u6a21\u5757\u662f\u6709\u5c42\u7ea7\u5173\u7cfb\u7684\r\n \u5047\u8bbe\u662f\u8fd9\u6837\u7684\u5173\u7cfb\r\n \u9879\u76eeA\u4e0b\u6709\u6a21\u5757M\uff0cM\u4e0b\u6709\u5b50\u6a21\u5757n\r\n2.\u9009\u62e9\u4e00\u4e2abug\u5c5e\u4e8en\u4ee5\u540e\r\n3.\u6309\u7167M\u67e5\u8be2\uff0c\u80fd\u4e0d\u80fd\u67e5\u51fa\u8fd9\u4e2abug\r\n\r\n\r\n[\u7ed3\u679c]\r\n\r\n[\u671f\u671b]\r\n\r\n[\u5907\u6ce8]","BugStatus":"Active","BugSubStatus":"","LinkID":"","CaseID":"40972","DuplicateID":"","MailTo":"","OpenedBy":"taobao-hz\\jessie.maoj","OpenedDate":"2010-06-08 14:10:13","OpenedBuild":"0.1","AssignedTo":"taobao-hz\\jessie.maoj","AssignedDate":"2010-06-08 14:10:13","ResolvedBy":"","Resolution":"","ResolvedBuild":"","ResolvedDate":"0000-00-00 00:00:00","ClosedBy":"","ClosedDate":"0000-00-00 00:00:00","LastEditedBy":"taobao-hz\\jessie.maoj","LastEditedDate":"2010-06-08 17:30:22","ModifiedBy":",taobao-hz\\jessie.maoj,taobao-hz\\jessie.maoj,taobao-hz\\jessie.maoj,taobao-hz\\jessie.maoj,","BugKeyword":"","ResultID":null,"CustomField1":null,"CustomField2":null,"CustomField3":null,"IsDroped":"0","status":"success"}</div>
          <p>CSV数据格式:</p>
          <div class="code">successBugIDProjectIDProjectNameModuleIDModulePathBugTitleBugSeverityBugPriorityBugTypeBugOSBugBrowserBugMachineHowFoundReproStepsBugStatusBugSubStatusLinkIDCaseIDDuplicateIDMailToOpenedByOpenedDateOpenedBuildAssignedToAssignedDateResolvedByResolutionResolvedBuildResolvedDateClosedByClosedDateLastEditedByLastEditedDateModifiedByBugKeywordResultIDCustomField1CustomField2CustomField3IsDroped5299924SampleProject1242/Test Bug/subitem/test/test2Test Bug模块的BUG由非烟提交给非烟34NewFeatureSpecReview[步骤] 1.模块是有层级关系的   假设是这样的关系   项目A下有模块M，M下有子模块n 2.选择一个bug属于n以后 3.按照M查询，能不能查出这个bug   [结果]  [期望]  [备注]Active40972taobao-hz\jessie.maoj2010-06-08 14:10:130.1taobao-hz\jessie.maoj2010-06-08 14:10:130000-00-00 00:00:000000-00-00 00:00:00taobao-hz\jessie.maoj2010-06-08 17:30:22,taobao-hz\jessie.maoj,taobao-hz\jessie.maoj,taobao-hz\jessie.maoj,taobao-hz\jessie.maoj,0dbe07b05cd2c62423cb59a441232cd93</div>
        </div>
      </div>
      <!-- end getbug div -->
      <hr/>
      <!-- getcase div -->
      <div>
        <h2><a name="getcase">getcase</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">获得Case信息。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>getcase</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
            <tr>
              <td>$sesseionname</td>
              <td>String</td>
              <td>必须</td>
              <td>以getsid取得的sessionname为键名，sessionid为键值</td>
              <td>$sessionid</td>
              <td></td>
            </tr>
          </table>
          <h3>应用级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>CaseID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>case的主键</td>
              <td>1</td>
              <td></td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code">
            <span class="comment">
            #支持Post
            </span>
            <br/>
            http://bugfree/api.php?mode=getcase&amp;format=json&amp;charset=utf8&amp;PHPSESSID=72iltnrjsjph6nm8rmsru4nbd2&amp;CaseID=1
          </div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">
            {"CaseID":"17806","ProjectID":"24","ProjectName":"SampleProject","ModuleID":"305","ModulePath":"\/BidSettle","CaseTitle":"login2.0","CasePriority":"3","CaseType":"Functional","CaseStatus":"Active","CaseMethod":"Automation","CasePlan":"","CaseSteps":"1. fdasf\r\n2. fdsa","OpenedBy":"taobao-hz\\xianyun","OpenedDate":"2009-04-22 15:32:22","AssignedTo":"taobao-hz\\xianyun","AssignedDate":"2009-04-22 15:32:22","LastEditedBy":"taobao-hz\\yuanzhong","LastEditedDate":"2009-08-31 14:42:56","ModifiedBy":",taobao-hz\\xianyun,taobao-hz\\yuanzhong,","ScriptedBy":"taobao-hz\\xianyun","ScriptedDate":"2009-04-22","ScriptStatus":"CodingDone","ScriptLocation":"","MailTo":"","MarkForDeletion":"0","LinkID":"","BugID":"","ResultID":"","CaseKeyword":"","CustomField1":"","CustomField2":"","CustomField3":"","IsDroped":"0","DisplayOrder":"0","status":"success"}
          </div>
          <p>CSV数据格式:</p>
          <div class="code">
            successCaseIDProjectIDProjectNameModuleIDModulePathCaseTitleCasePriorityCaseTypeCaseStatusCaseMethodCasePlanCaseStepsOpenedByOpenedDateAssignedToAssignedDateLastEditedByLastEditedDateModifiedByScriptedByScriptedDateScriptStatusScriptLocationMailToMarkForDeletionLinkIDBugIDResultIDCaseKeywordCustomField1CustomField2CustomField3IsDropedDisplayOrder1780624SampleProject305/BidSettlelogin2.03FunctionalActiveAutomation1. fdasf 2. fdsataobao-hz\xianyun2009-04-22 15:32:22taobao-hz\xianyun2009-04-22 15:32:22taobao-hz\yuanzhong2009-08-31 14:42:56,taobao-hz\xianyun,taobao-hz\yuanzhong,taobao-hz\xianyun2009-04-22#CodingDone###0########00502b6aa23eedd082c703765ae0b5b37d
          </div>
        </div>
      </div>
      <!-- end getcase div -->
      <hr/>
      <!-- getresult div -->
      <div>
        <h2><a name="getresult">getresult</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">获得Result信息。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>getresult</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
            <tr>
              <td>$sesseionname</td>
              <td>String</td>
              <td>必须</td>
              <td>以getsid取得的sessionname为键名，sessionid为键值</td>
              <td>$sessionid</td>
              <td></td>
            </tr>
          </table>
          <h3>应用级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>ResultID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>result的主键</td>
              <td>1</td>
              <td></td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code">
            <span class="comment">
            #支持Post
            </span>
            <br/>
            http://bugfree/api.php?mode=getresult&amp;format=json&amp;charset=utf8&amp;PHPSESSID=72iltnrjsjph6nm8rmsru4nbd2&amp;ResultID=1
          </div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">{"ResultID":"24","ProjectID":"24","ProjectName":"SampleProject","ModuleID":"195","ModulePath":"\/Child","CaseID":"648","ResultTitle":"bugfree\u8bd5\u7528","ResultValue":"Fail","ResultStatus":"Resolved","MailTo":"wb_yanmei.liu@alibaba-inc.com","OpenedBy":"yahoo-bj\\lihao","OpenedDate":"2008-02-29 14:16:33","ResultSteps":"[\u6b65\u9aa4]\r\n1.yanmeiliu\u767b\u5f55NCP\u7ad9\u70b9http:\/\/spring6.zhan.cn.yahoo.com\r\n2.\u8fdb\u5165\u540e\u53f0\u7ba1\u7406\uff0c\u70b9\u51fb\u6a21\u7248\u7ba1\u7406\r\n3.\u9009\u62e9\u5bb6\u5c45\u6a21\u677f\r\n\r\n[\u9a8c\u8bc1]\r\n3\u3001\u7ad9\u70b9\u80cc\u666f\u6362\u6210\u5bb6\u5c45\u6a21\u677f\r\n[\u5907\u6ce8]\r\n\u7ba1\u7406\u5458spring\u4e5f\u53ef\u4ee5\u6267\u884c\u64cd\u4f5c","AssignedTo":"yahoo-bj\\lihao","AssignedDate":"2008-02-29 14:16:33","LastEditedBy":"yahoo-bj\\lihao","LastEditedDate":"2008-02-29 14:34:25","ModifiedBy":",yahoo-bj\\lihao,yahoo-bj\\lihao,","ResultOS":"WinXP","ResultBrowser":"IE7","ResultMachine":"yiban","ResultBuild":"bugfree\u8bd5\u7528_20080229","ResultKeyword":"","BugID":"5420,","CustomField1":"","CustomField2":"","CustomField3":"","IsDroped":"0","status":"success"}</div>
          <p>CSV数据格式:</p>
          <div class="code">successResultIDProjectIDProjectNameModuleIDModulePathCaseIDResultTitleResultValueResultStatusMailToOpenedByOpenedDateResultStepsAssignedToAssignedDateLastEditedByLastEditedDateModifiedByResultOSResultBrowserResultMachineResultBuildResultKeywordBugIDCustomField1CustomField2CustomField3IsDroped2424SampleProject195/Child648bugfree试用FailResolvedwb_yanmei.liu@alibaba-inc.comyahoo-bj\lihao2008-02-29 14:16:33[步骤] 1.yanmeiliu登录NCP站点http://spring6.zhan.cn.yahoo.com 2.进入后台管理，点击模版管理 3.选择家居模板  [验证] 3、站点背景换成家居模板 [备注] 管理员spring也可以执行操作yahoo-bj\lihao2008-02-29 14:16:33yahoo-bj\lihao2008-02-29 14:34:25,yahoo-bj\lihao,yahoo-bj\lihao,WinXPIE7yibanbugfree试用_200802295420,055f4070ae26264fbdf49a208b13e4c96</div>
        </div>
      </div>
      <!-- end getresult div -->
      <hr/>
      <!-- addbug div -->
      <div>
        <h2><a name="addbug">addbug</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">新增Bug。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>addbug</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
            <tr>
              <td>$sesseionname</td>
              <td>String</td>
              <td>必须</td>
              <td>以getsid取得的sessionname为键名，sessionid为键值</td>
              <td>$sessionid</td>
              <td></td>
            </tr>
          </table>
          <h3>应用级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>ProjectID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>项目id</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>ModuleID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>模块id</td>
              <td>1</td>
              <td>0</td>
            </tr>
            <tr>
              <td>BugTitle</td>
              <td>Integer</td>
              <td>必须</td>
              <td>bug标题</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>ReproSteps</td>
              <td>String</td>
              <td></td>
              <td>重现步骤</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>AssignedTo</td>
              <td>String</td>
              <td>必须</td>
              <td>指派给</td>
              <td>adminitrator</td>
              <td>Active</td>
            </tr>
            <tr>
              <td>BugSeverity</td>
              <td>Integer</td>
              <td>必须</td>
              <td>严重程度</td>
              <td></td>
              <td>3</td>
            </tr>
            <tr>
              <td>BugType</td>
              <td>String</td>
              <td>必须</td>
              <td>Bug类型</td>
              <td>CodeError, Interface, DesignChange, NewFeature, DesignDefect, Config, Install, Security, Performance, Standard, Automation, TrackThings, BadCase, Others</td>
              <td>CodeError</td>
            </tr>
            <tr>
              <td>HowFound</td>
              <td>String</td>
              <td>必须</td>
              <td>如何发现</td>
              <td>FuncTest, UnitTest, BVT, Integratem, System, SmokeTest, Acceptance, BugBash, AdHoc, Regression, SpecReview, CodeReview, PostRTW, Customer, Partner, Other </td>
              <td>FuncTest</td>
            </tr>
            <tr>
              <td>OpenedBuild</td>
              <td>String</td>
              <td>必须</td>
              <td>创建build</td>
              <td></td>
              <td>N/A</td>
            </tr>
            <tr>
              <td>ReplyNote</td>
              <td>String</td>
              <td>必须</td>
              <td>注释</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>BugKeyword</td>
              <td>String</td>
              <td></td>
              <td>关键字</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>BugPriority</td>
              <td>String</td>
              <td></td>
              <td>优先级</td>
              <td></td>
              <td>3</td>
            </tr>
            <tr>
              <td>MailTo</td>
              <td>String</td>
              <td></td>
              <td>抄送给, 以','分割</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>BugOS</td>
              <td>String</td>
              <td></td>
              <td>操作系统</td>
              <td>All,Win7,WinVista,WinXP,Win2000,Linux,FreeBSD,Unit,MacOS,Others</td>
              <td></td>
            </tr>
            <tr>
              <td>BugBrowser</td>
              <td>String</td>
              <td></td>
              <td>浏览器</td>
              <td>All,IE8,IE7,IE6,FireFox3.0,FireFox2.0,Chrome,Safari,Opera,Others</td>
              <td></td>
            </tr>
            <tr>
              <td>BugMachine</td>
              <td>String</td>
              <td></td>
              <td>机器配置</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>CaseID</td>
              <td>Integer</td>
              <td></td>
              <td>相关Case</td>
              <td></td>
              <td></td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code">
            <span class="comment">
            #支持Post
            </span>
            <br/>
            http://bugfree/api.php?mode=addbug&amp;format=json&amp;charset=utf8&amp;PHPSESSID=72iltnrjsjph6nm8rmsru4nbd2&amp;ProjectID=1&amp;ModuleID=1&amp;BugTitle=test&amp;ReproSteps=test&amp;AssignedTo=admin&amp;BugSeverity=1&amp;BugType=CodeError&amp;HowToFound=FuncTest&amp;OpenedBuild=test&amp;ReplyNote=test&amp;BugKeyword=test&amp;BugPriority=1&amp;MailTo=admin
          </div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">{"BugID":56194,"status":"success"}</div>
          <p>CSV数据格式:</p>
          <div class="code">successBugID5619548791d9395eb9afb12641484c60d5780</div>
        </div>
      </div>
      <!-- end addbug div -->
      <hr/>
      <!-- addcase div -->
      <div>
        <h2><a name="addcase">addcase</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">新增Case。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>addcase</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
            <tr>
              <td>$sesseionname</td>
              <td>String</td>
              <td>必须</td>
              <td>以getsid取得的sessionname为键名，sessionid为键值</td>
              <td>$sessionid</td>
              <td></td>
            </tr>
          </table>
          <h3>应用级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>ProjectID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>项目id</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>ModuleID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>模块id</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>CaseTitle</td>
              <td>Integer</td>
              <td>必须</td>
              <td>Case标题</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>CaseSteps</td>
              <td>String</td>
              <td>必须</td>
              <td>Case步骤</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>AssignedTo</td>
              <td>String</td>
              <td>必须</td>
              <td>指派给</td>
              <td>adminitrator</td>
              <td></td>
            </tr>
            <tr>
              <td>CaseStatus</td>
              <td>String</td>
              <td>必须</td>
              <td>Case状态</td>
              <td>Active, Blocked, Investigate, Reviewed</td>
              <td>Active</td>
            </tr>
            <tr>
              <td>CaseType</td>
              <td>String</td>
              <td>必须</td>
              <td>Case类型</td>
              <td>Functional, Configuration, Setup, Security, Performance, Other</td>
              <td>Functional</td>
            </tr>
            <tr>
              <td>CasePriority</td>
              <td>Integer</td>
              <td>必须</td>
              <td>Case优先级</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>CaseMethod</td>
              <td>String</td>
              <td>必须</td>
              <td>测试方法</td>
              <td>Manual, Automation</td>
              <td>Automation</td>
            </tr>
            <tr>
              <td>ReplyNote</td>
              <td>String</td>
              <td>必须</td>
              <td>注释</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>ScriptedBy</td>
              <td>String</td>
              <td></td>
              <td>脚本编写者</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>ScriptedDate</td>
              <td>String</td>
              <td></td>
              <td>格式: yyyy-mm-dd</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>ScriptStatus</td>
              <td>String</td>
              <td></td>
              <td>脚本状态</td>
              <td>NotPlanned, Planning, Blocked, Coding, CodingDone, Reviewed</td>
              <td>NotPlanned</td>
            </tr>
            <tr>
              <td>ScriptLocation</td>
              <td>String</td>
              <td></td>
              <td>脚本地址</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>CasePlan</td>
              <td>String</td>
              <td></td>
              <td>测试计划</td>
              <td>Function, UnitTest, BVT, Intergrate, System, Smoke, Acceptance</td>
              <td>Function</td>
            </tr>
            <tr>
              <td>CaseKeyword</td>
              <td>String</td>
              <td></td>
              <td>关键字</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>BugID</td>
              <td>Integer</td>
              <td></td>
              <td>相关Bug</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>LinkID</td>
              <td>Integer</td>
              <td></td>
              <td>相关Case</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>DisplayOrder</td>
              <td>Integer</td>
              <td></td>
              <td>显示顺序</td>
              <td></td>
              <td>0</td>
            </tr>
            <tr>
              <td>MailTo</td>
              <td>String</td>
              <td></td>
              <td>抄送给, 以','分割</td>
              <td></td>
              <td>0</td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code">
            <span class="comment">
            #支持Post
            </span>
            <br/>
            http://bugfree/api.php?mode=addcase&amp;format=json&amp;charset=utf8&amp;PHPSESSID=72iltnrjsjph6nm8rmsru4nbd2&amp;ProjectID=1&amp;ModuleID=1&amp;CaseTitle=test&amp;CaseSteps=test&amp;AssignedTo=admin&amp;CaseStatus=Active&amp;CaseType=Functional&amp;CasePriority=1&amp;CaseMethod=Manual&amp;ReplyNote=test&amp;ScriptedBy=admin&amp;ScriptedDate=2012-10-10&amp;ScriptStatus=NotPlanned&amp;ScriptLocation=test&amp;CasePlan=Function&amp;CaseKeyword=test&amp;BugID=1&amp;LinkID=1
          </div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">{"CaseID":56194,"status":"success"}</div>
          <p>CSV数据格式:</p>
          <div class="code">successCaseID5619548791d9395eb9afb12641484c60d5780</div>
        </div>
      </div>
      <!-- end addcase div -->
      <hr/>
      <!-- addresult div -->
      <div>
        <h2><a name="addresult">addresult</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">新增Result。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>addresult</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
            <tr>
              <td>$sesseionname</td>
              <td>String</td>
              <td>必须</td>
              <td>以getsid取得的sessionname为键名，sessionid为键值</td>
              <td>$sessionid</td>
              <td></td>
            </tr>
          </table>
          <h3>应用级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>CaseID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>CaseID</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>ResultValue</td>
              <td>String</td>
              <td>必须</td>
              <td>Result结果</td>
              <td>Pass, Fail</td>
              <td></td>
            </tr>
            <tr>
              <td>ResultBuild</td>
              <td>String</td>
              <td>必须</td>
              <td>运行Build</td>
              <td></td>
              <td>N/A</td>
            </tr>
            <tr>
              <td>ResultStatus</td>
              <td>Integer</td>
              <td>必须</td>
              <td>运行状态</td>
              <td>Completed, Investigate, Resolved</td>
              <td>Completed</td>
            </tr>
            <tr>
              <td>AssignedTo</td>
              <td>String</td>
              <td>必须</td>
              <td>指派给</td>
              <td>adminitrator</td>
              <td></td>
            </tr>
            <tr>
              <td>ReplyNote</td>
              <td>String</td>
              <td>必须</td>
              <td>注释</td>
              <td></td>
              <td></td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code">
            <span class="comment">
            #支持Post
            </span>
            <br/>
            http://bugfree/api.php?mode=addresult&amp;format=json&amp;charset=utf8&amp;PHPSESSID=72iltnrjsjph6nm8rmsru4nbd2&amp;CaseID=1&amp;ResultValue=pass&amp;ResultBuild=test&amp;ResultStatus=Completed&amp;AssignedTo=admin&amp;ReplyNote=test
          </div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">{"ResultID":56194,"status":"success"}</div>
          <p>CSV数据格式:</p>
          <div class="code">successResultID5619548791d9395eb9afb12641484c60d5780</div>
        </div>
      </div>
      <!-- end addresult div -->
      <hr/>
      <!-- updatebug div -->
      <div>
        <h2><a name="updatebug">updatebug</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">编辑Bug信息。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>updatebug</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
            <tr>
              <td>$sesseionname</td>
              <td>String</td>
              <td>必须</td>
              <td>以getsid取得的sessionname为键名，sessionid为键值</td>
              <td>$sessionid</td>
              <td></td>
            </tr>
          </table>
          <h3>应用级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>BugID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>BugID</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>ProjectID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>项目id</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>ModuleID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>模块id</td>
              <td>1</td>
              <td>0</td>
            </tr>
            <tr>
              <td>BugTitle</td>
              <td>Integer</td>
              <td>必须</td>
              <td>bug标题</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>ReproSteps</td>
              <td>String</td>
              <td></td>
              <td>重现步骤</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>AssignedTo</td>
              <td>String</td>
              <td>必须</td>
              <td>指派给</td>
              <td>adminitrator</td>
              <td>Active</td>
            </tr>
            <tr>
              <td>BugSeverity</td>
              <td>Integer</td>
              <td>必须</td>
              <td>严重程度</td>
              <td></td>
              <td>3</td>
            </tr>
            <tr>
              <td>BugType</td>
              <td>String</td>
              <td>必须</td>
              <td>Bug类型</td>
              <td>CodeError, Interface, DesignChange, NewFeature, DesignDefect, Config, Install, Security, Performance, Standard, Automation, TrackThings, BadCase, Others</td>
              <td>CodeError</td>
            </tr>
            <tr>
              <td>HowFound</td>
              <td>String</td>
              <td>必须</td>
              <td>如何发现</td>
              <td>FuncTest, UnitTest, BVT, Integratem, System, SmokeTest, Acceptance, BugBash, AdHoc, Regression, SpecReview, CodeReview, PostRTW, Customer, Partner, Other </td>
              <td>FuncTest</td>
            </tr>
            <tr>
              <td>OpenedBuild</td>
              <td>String</td>
              <td>必须</td>
              <td>创建build</td>
              <td></td>
              <td>N/A</td>
            </tr>
            <tr>
              <td>ReplyNote</td>
              <td>String</td>
              <td>必须</td>
              <td>注释</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>BugKeyword</td>
              <td>String</td>
              <td></td>
              <td>关键字</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>BugPriority</td>
              <td>String</td>
              <td></td>
              <td>优先级</td>
              <td></td>
              <td>3</td>
            </tr>
            <tr>
              <td>MailTo</td>
              <td>String</td>
              <td></td>
              <td>抄送给, 以','分割</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>BugOS</td>
              <td>String</td>
              <td></td>
              <td>操作系统</td>
              <td>All,Win7,WinVista,WinXP,Win2000,Linux,FreeBSD,Unit,MacOS,Others</td>
              <td></td>
            </tr>
            <tr>
              <td>BugBrowser</td>
              <td>String</td>
              <td></td>
              <td>浏览器</td>
              <td>All,IE8,IE7,IE6,FireFox3.0,FireFox2.0,Chrome,Safari,Opera,Others</td>
              <td></td>
            </tr>
            <tr>
              <td>BugMachine</td>
              <td>String</td>
              <td></td>
              <td>机器配置</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>CaseID</td>
              <td>Integer</td>
              <td></td>
              <td>相关Case</td>
              <td></td>
              <td></td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code">
            <span class="comment">
            #支持Post
            </span>
            <br/>
            http://bugfree/api.php?mode=updatebug&amp;format=json&amp;charset=utf8&amp;PHPSESSID=72iltnrjsjph6nm8rmsru4nbd2&amp;BugID=1&amp;$ProjectID=1&amp;ModuleID=1&amp;BugTitle=test&amp;ReproSteps=test&amp;AssignedTo=admin&amp;BugSeverity=1&amp;BugType=CodeError&amp;HowToFound=FuncTest&amp;OpenedBuild=test&amp;ReplyNote=test&amp;BugKeyword=test&amp;BugPriority=1&amp;MailTo=admin
          </div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">{"info":"success","status":"success"}</div>
          <p>CSV数据格式:</p>
          <div class="code">successinfosuccessb9d29aa75a183dceebd3b2d3533de577</div>
        </div>
      </div>
      <!-- end updatebug div -->
      <hr/>
      <!-- updatecase div -->
      <div>
        <h2><a name="updatecase">updatecase</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">编辑Case信息。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>updatecase</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
            <tr>
              <td>$sesseionname</td>
              <td>String</td>
              <td>必须</td>
              <td>以getsid取得的sessionname为键名，sessionid为键值</td>
              <td>$sessionid</td>
              <td></td>
            </tr>
          </table>
          <h3>应用级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>CaseID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>CaseID</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>ProjectID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>项目id</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>ModuleID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>模块id</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>CaseTitle</td>
              <td>Integer</td>
              <td>必须</td>
              <td>Case标题</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>CaseSteps</td>
              <td>String</td>
              <td>必须</td>
              <td>Case步骤</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>AssignedTo</td>
              <td>String</td>
              <td>必须</td>
              <td>指派给</td>
              <td>adminitrator</td>
              <td></td>
            </tr>
            <tr>
              <td>CaseStatus</td>
              <td>String</td>
              <td>必须</td>
              <td>Case状态</td>
              <td>Active, Blocked, Investigate, Reviewed</td>
              <td>Active</td>
            </tr>
            <tr>
              <td>CaseType</td>
              <td>String</td>
              <td>必须</td>
              <td>Case类型</td>
              <td>Functional, Configuration, Setup, Security, Performance, Other</td>
              <td>Functional</td>
            </tr>
            <tr>
              <td>CasePriority</td>
              <td>Integer</td>
              <td>必须</td>
              <td>Case优先级</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>CaseMethod</td>
              <td>String</td>
              <td>必须</td>
              <td>测试方法</td>
              <td>Manual, Automation</td>
              <td>Automation</td>
            </tr>
            <tr>
              <td>ReplyNote</td>
              <td>String</td>
              <td>必须</td>
              <td>注释</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>ScriptedBy</td>
              <td>String</td>
              <td></td>
              <td>脚本编写者</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>ScriptedDate</td>
              <td>String</td>
              <td></td>
              <td>格式: yyyy-mm-dd</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>ScriptStatus</td>
              <td>String</td>
              <td></td>
              <td>脚本状态</td>
              <td>NotPlanned, Planning, Blocked, Coding, CodingDone, Reviewed</td>
              <td>NotPlanned</td>
            </tr>
            <tr>
              <td>ScriptLocation</td>
              <td>String</td>
              <td></td>
              <td>脚本地址</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>CasePlan</td>
              <td>String</td>
              <td></td>
              <td>测试计划</td>
              <td>Function, UnitTest, BVT, Intergrate, System, Smoke, Acceptance</td>
              <td>Function</td>
            </tr>
            <tr>
              <td>CaseKeyword</td>
              <td>String</td>
              <td></td>
              <td>关键字</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>BugID</td>
              <td>Integer</td>
              <td></td>
              <td>相关Bug</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>LinkID</td>
              <td>Integer</td>
              <td></td>
              <td>相关Case</td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td>DisplayOrder</td>
              <td>Integer</td>
              <td></td>
              <td>显示顺序</td>
              <td></td>
              <td>0</td>
            </tr>
            <tr>
              <td>MailTo</td>
              <td>String</td>
              <td></td>
              <td>抄送给, 以','分割</td>
              <td></td>
              <td>0</td>
            </tr>
            <tr>
              <td>MarkForDeletion</td>
              <td>String</td>
              <td></td>
              <td>标记删除</td>
              <td>0, 1</td>
              <td></td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code">
            <span class="comment">
            #支持Post
            </span>
            <br/>
            http://bugfree/api.php?mode=updatecase&amp;format=json&amp;charset=utf8&amp;PHPSESSID=72iltnrjsjph6nm8rmsru4nbd2&amp;CaseID=1&amp;ProjectID=1&amp;ModuleID=1&amp;CaseTitle=test&amp;CaseSteps=test&amp;AssignedTo=admin&amp;CaseStatus=Active&amp;CaseType=Functional&amp;CasePriority=1&amp;CaseMethod=Manual&amp;ReplyNote=test&amp;ScriptedBy=admin&amp;ScriptedDate=2012-10-10&amp;ScriptStatus=NotPlanned&amp;ScriptLocation=test&amp;CasePlan=Function&amp;CaseKeyword=test&amp;BugID=1&amp;LinkID=1
          </div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">{"info":"success","status":"success"}</div>
          <p>CSV数据格式:</p>
          <div class="code">successinfosuccessb9d29aa75a183dceebd3b2d3533de577</div>
        </div>
      </div>
      <!-- end updatecase div -->
      <hr/>
      <!-- updateresult div -->
      <div>
        <h2><a name="updateresult">updateresult</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">编辑Result信息。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>updateresult</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
            <tr>
              <td>$sesseionname</td>
              <td>String</td>
              <td>必须</td>
              <td>以getsid取得的sessionname为键名，sessionid为键值</td>
              <td>$sessionid</td>
              <td></td>
            </tr>
          </table>
          <h3>应用级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>ResultID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>ResultID</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>CaseID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>CaseID</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>ResultValue</td>
              <td>String</td>
              <td>必须</td>
              <td>Result结果</td>
              <td>Pass, Fail</td>
              <td></td>
            </tr>
            <tr>
              <td>ResultBuild</td>
              <td>String</td>
              <td>必须</td>
              <td>运行Build</td>
              <td></td>
              <td>N/A</td>
            </tr>
            <tr>
              <td>ResultStatus</td>
              <td>Integer</td>
              <td>必须</td>
              <td>运行状态</td>
              <td>Completed, Investigate, Resolved</td>
              <td>Completed</td>
            </tr>
            <tr>
              <td>AssignedTo</td>
              <td>String</td>
              <td>必须</td>
              <td>指派给</td>
              <td>adminitrator</td>
              <td></td>
            </tr>
            <tr>
              <td>ReplyNote</td>
              <td>String</td>
              <td>必须</td>
              <td>注释</td>
              <td></td>
              <td></td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code">
            <span class="comment">
            #支持Post
            </span>
            <br/>
            http://bugfree/api.php?mode=updateresult&amp;format=json&amp;charset=utf8&amp;PHPSESSID=72iltnrjsjph6nm8rmsru4nbd2&amp;ResultID=1&amp;CaseID=1&amp;ResultValue=pass&amp;ResultBuild=test&amp;ResultStatus=Completed&amp;AssignedTo=admin&amp;ReplyNote=test
          </div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">{"info":"success","status":"success"}</div>
          <p>CSV数据格式:</p>
          <div class="code">successinfosuccessb9d29aa75a183dceebd3b2d3533de577</div>
        </div>
      </div>
      <!-- end addresult div -->
      <hr/>
      <!-- getquery div -->
      <div>
        <h2><a name="getquery">getquery</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">根据query查找信息。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>getquery</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
            <tr>
              <td>$sesseionname</td>
              <td>String</td>
              <td>必须</td>
              <td>以getsid取得的sessionname为键名，sessionid为键值</td>
              <td>$sessionid</td>
              <td></td>
            </tr>
          </table>
          <h3>应用级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>QueryID</td>
              <td>Integer</td>
              <td>必须</td>
              <td>QueryID</td>
              <td>1</td>
              <td></td>
            </tr>
            <tr>
              <td>page</td>
              <td>Integer</td>
              <td>必须</td>
              <td>页数</td>
              <td>1</td>
              <td>1</td>
            </tr>
            <tr>
              <td>size</td>
              <td>Integer</td>
              <td>必须</td>
              <td>页大小</td>
              <td>100</td>
              <td>100</td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code">
            <span class="comment">
            #支持Post
            </span>
            <br/>
            http://bugfree/api.php?mode=getquery&amp;format=json&amp;charset=utf8&amp;PHPSESSID=72iltnrjsjph6nm8rmsru4nbd2&amp;QueryID=1&amp;page=1&amp;size=20
          </div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">{"BugList":{"56177":{"BugID":"56177","ProjectID":"60","ProjectName":"\u641c\u7d22\u5e7f\u544a","ModuleID":"2245","ModulePath":"\/\u524d\u7aef\/\u76f4\u901a\u8f66\/\u7ade\u4ef7\u8bcd\u76f8\u5173","BugTitle":"\u7ebf\u4e0a-\u5173\u952e\u8bcd\u7ba1\u7406\u9875\u9762\uff0c\u4e0d\u9009\u4e2d\u5173\u952e\u8bcd\u8fdb\u884c\u6279\u91cf\u64cd\u4f5c\uff0c\u7136\u540e\u51fa\u4ef7\u6539\u4ef7\uff0c\u9875\u9762\u4e0a\u9519\u8bef\u63d0\u793a\u4e00\u76f4\u5b58\u5728\uff1b\u53cd\u4e4b\u4ea6\u7136","BugSeverity":"3","BugPriority":"3","BugType":"CodeError","BugOS":"","BugBrowser":"","BugMachine":"","HowFound":"FuncTest","ReproSteps":"[\u6b65\u9aa4]\r\n\u5173\u952e\u8bcd\u7ba1\u7406\u9875\u9762\u4e2d\uff0c\r\n1.\u4e0d\u9009\u4e2d\u5173\u952e\u8bcd\uff0c\u8fdb\u884c\u6279\u91cf\u6539\u4ef7\u6216\u8005\u5220\u9664\uff0c\u9875\u9762\u5f39\u51fa\u63d0\u793a\r\n2.\u70b9\u51fb\u5173\u952e\u8bcd\u7684\u201c\u51fa\u4ef7\u201d\u8fdb\u884c\u6539\u4ef7\uff0c\u6539\u4ef7\u6210\u529f\u540e\uff0c\u5f39\u51fa\u6539\u4ef7\u6210\u529f\u63d0\u793a\r\n\r\n[\u7ed3\u679c]\r\n2.\u6b65\u9aa41\u4e2d\u7684\u9519\u8bef\u63d0\u793a\u4e00\u76f4\u5b58\u5728\r\n\r\n[\u671f\u671b]\r\n\r\n[\u5907\u6ce8]\r\n\u5148\u6539\u4ef7\uff0c\u540e\u4e0d\u9009\u62e9\u5173\u952e\u8bcd\u8fdb\u884c\u6279\u91cf\u64cd\u4f5c\uff0c\u9875\u9762\u4e5f\u5b58\u5728\u7c7b\u4f3c\u7684bug","BugStatus":"Active","BugSubStatus":"","LinkID":"","CaseID":"","DuplicateID":"","MailTo":"","OpenedBy":"taobao-hz\\zhaoling","OpenedDate":"2010-07-02 18:18:37","OpenedBuild":"N\/A","AssignedTo":"taobao-hz\\jinqiu","AssignedDate":"2010-07-02 18:18:37","ResolvedBy":"","Resolution":"","ResolvedBuild":"","ResolvedDate":"0000-00-00 00:00:00","ClosedBy":"","ClosedDate":"0000-00-00 00:00:00","LastEditedBy":"taobao-hz\\jiaoba","LastEditedDate":"2010-10-13 15:57:32","ModifiedBy":",taobao-hz\\zhaoling,taobao-hz\\jiaoba,taobao-hz\\jiaoba,taobao-hz\\jiaoba,","BugKeyword":"","ResultID":null,"CustomField1":null,"CustomField2":null,"CustomField3":null,"IsDroped":"0","FieldID":"56177","test":"1","testa":"Active"},"56130":{"BugID":"56130","ProjectID":"60","ProjectName":"\u641c\u7d22\u5e7f\u544a","ModuleID":"2333","ModulePath":"\/\u5f15\u64ce\/Master\/\u5168\u6587\u5f15\u64ce","BugTitle":"\u3010\u5e97\u94fa\u63a8\u5e7f\u5ba1\u6838\u3011-im\u641c\u7d22\u65f6\uff0c\u7ffb\u9875\u7ed3\u679c\u4e3a\u7a7a","BugSeverity":"2","BugPriority":"2","BugType":"CodeError","BugOS":"","BugBrowser":"","BugMachine":"","HowFound":"FuncTest","ReproSteps":"[\u6b65\u9aa4]\r\n1.\u8fdb\u884c\u641c\u7d22\uff1a\r\n\u7b2c\u4e00\u9875\uff1a\r\nhttp:\/\/xentest8-vm4.corp.alimama.com\/ws\/audit\/v1.0\/formrpc?name=ListMessageshttp:\/\/xentest8-vm4.corp.alimama.com\/ws\/audit\/v1.0\/formrpc?name=ListMessagesip=10.1.1.1count=5offset=5pid=aim=wztest160ww\r\n\r\n[\u7ed3\u679c]\r\n\u7b2c\u4e00\u9875\u7684\u5e7f\u544a\u548c\u603b\u6570\u6b63\u786e\r\n\u7b2c\u4e8c\u9875\u7684\u5e7f\u544a\u603b\u6570\u548c\u5e7f\u544a\u5747\u4e0d\u5bf9\uff0c\u603b\u6570\u5e94\u8be5\u4e3a6\uff0c \u5e7f\u544a\u4e3a824","BugStatus":"Active","BugSubStatus":"","LinkID":"","CaseID":"","DuplicateID":"","MailTo":"taobao-hz\\wenqi","OpenedBy":"taobao-hz\\jiaojiao","OpenedDate":"2010-07-02 16:02:19","OpenedBuild":"iMatch-auditdp-front-1.0.13-1","AssignedTo":"taobao-hz\\shuijing","AssignedDate":"2010-07-02 16:02:19","ResolvedBy":"","Resolution":"","ResolvedBuild":"","ResolvedDate":"0000-00-00 00:00:00","ClosedBy":"","ClosedDate":"0000-00-00 00:00:00","LastEditedBy":"taobao-hz\\jiaoba","LastEditedDate":"2010-10-11 10:13:36","ModifiedBy":",taobao-hz\\jiaojiao,taobao-hz\\jiaoba,","BugKeyword":"","ResultID":null,"CustomField1":null,"CustomField2":null,"CustomField3":null,"IsDroped":"0","FieldID":"56130","test":"1","testa":"Active"}},"BugIDs":"56177,56130,","size":500,"page":1,"status":"success"}</div>
          <p>CSV数据格式:</p>
          <div class="code">successBugCVSListBugIDssizepage BugID,ProjectID,ProjectName,ModuleID,ModulePath,BugTitle,BugSeverity,BugPriority,BugType,BugOS,BugBrowser,BugMachine,HowFound,ReproSteps,BugStatus,BugSubStatus,LinkID,DuplicateID,MailTo,OpenedBy,OpenedDate,OpenedBuild,AssignedTo,AssignedDate,ResolvedBy,Resolution,ResolvedBuild,ResolvedDate,ModifiedBy,ClosedBy,ClosedDate,LastEditedBy,LastEditedDate,BugKeyword,CaseID,ResultID "56177","60","搜索广告","2245","/前端/直通车/竞价词相关","线上-关键词管理页面，不选中关键词进行批量操作，然后出价改价，页面上错误提示一直存在；反之亦然","3","3","CodeError","","","","FuncTest","[步骤] 关键词管理页面中， 1.不选中关键词，进行批量改价或者删除，页面弹出提示 2.点击关键词的“出价”进行改价，改价成功后，弹出改价成功提示 [结果] 2.步骤1中的错误提示一直存在 [期望] [备注] 先改价，后不选择关键词进行批量操作，页面也存在类似的bug","Active","","","","","taobao- hz\zhaoling","2010-07-02 18:18:37","N/A","taobao-hz\jinqiu","2010-07-02 18:18:37","","","","0000-00-00 00:00:00",",taobao-hz\zhaoling,taobao-hz\jiaoba,taobao-hz\jiaoba,taobao-hz\jiaoba,","","0000-00-00 00:00:00","taobao-hz\jiaoba","2010-10-13 15:57:32","","","" "56130","60","搜索广告","2333","/引擎/Master/全文引擎","【店铺推广审核】-im搜索时，翻页结果为空","2","2","CodeError","","","","FuncTest","[步骤] 1.进行搜索：第一页： http://xentest8-vm4.corp.alimama.com/ws/audit/v1.0 /formrpc?name=ListMessagesip=10.1.1.1count=5offset=0 pid=aim=wztest160ww 第二页： http://xentest8-vm4.corp.alimama.com/ws/audit/v1.0 /formrpc?name=ListMessagesip=10.1.1.1count=5offset=5 pid=aim=wztest160ww [结果] 第一页的广告和总数正确第二页的广告总数和广告均不对，总数应该为6， 广告为824","Active","","","","taobao-hz\wenqi","taobao-hz \jiaojiao","2010-07-02 16:02:19","iMatch-auditdp-front-1.0.13-1","taobao-hz\shuijing","2010-07-02 16:02:19","","","","0000-00-00 00:00:00",",taobao-hz\jiaojiao,taobao-hz\jiaoba,","","0000-00-00 00:00:00","taobao-hz\jiaoba","2010-10-11 10:13:36","","","" 56177,56130,50012d46925140d288dd6092a5419e8b3776</div>
        </div>
      </div>
      <!-- end getquery div -->
      <hr/>
      <!-- query div -->
      <div>
        <h2><a name="query">query</a></h2>
        <div>
          <h3>简单描述</h3>
          <p class="para">查找信息。</p>
          <h3>系统级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>mode</td>
              <td>String</td>
              <td>必须</td>
              <td>API接口名称</td>
              <td>query</td>
              <td></td>
            </tr>
            <tr>
              <td>format</td>
              <td>String</td>
              <td>可选</td>
              <td>指定响应格式</td>
              <td>json,csv</td>
              <td>csv</td>
            </tr>
            <tr>
              <td>charset</td>
              <td>String</td>
              <td>可选</td>
              <td>指定请求和响应字符集</td>
              <td>utf8</td>
              <td>utf8</td>
            </tr>
            <tr>
              <td>$sesseionname</td>
              <td>String</td>
              <td>必须</td>
              <td>以getsid取得的sessionname为键名，sessionid为键值</td>
              <td>$sessionid</td>
              <td></td>
            </tr>
          </table>
          <h3>应用级输入参数</h3>
          <table>
            <tr>
              <th width="15%">名称</th>
              <th width="15%">类型</th>
              <th width="15%">是否必须</th>
              <th width="25%">描述</th>
              <th width="15%">示例值</th>
              <th width="15%">默认值</th>
            </tr>
            <tr>
              <td>query</td>
              <td>XML</td>
              <td>必须</td>
              <td>将根据传输的XML转义成SQL查询，XML Schema见下文。该参数只支持POST方法传输。若查询条件中包含ProjectID, ProjectName, ModuleID字段并且操作符是'EQ'，将根据其确定的Project获取相对应的自定义字段。</td>
              <td>
              XML参数示例见下文
              </td>
              <td></td>
            </tr>
          </table>
          <h3>代码示例</h3>
          <div class="code">
            <span class="comment">
            #仅支持Post
            </span>
            <br/>
            setPostAction('http://bugfree/api.php');<br/>
            setPostField('mode', 'query');<br/>
            setPostField('format', 'json');<br/>
            setPostField('charset', 'utf8');<br/>
            setPostField('PHPSESSID', '72iltnrjsjph6nm8rmsru4nbd2');<br/>
            setPostField('query', $xml);
          </div>
          <h3>XML参数示例</h3>
 <div id="hcode">
 <div style="width: 100%;" class="highlight_div"><table style="border-collapse: collapse; width: 100%;" class="highlighttable"><tbody><tr><td style="border-right: 1px solid rgb(221, 221, 221); width: 18px; color: gray; overflow: visible; background-color: rgb(221, 238, 255); text-align: right;" class="linenos"><pre style="width: auto; clear: none; float: none; margin: 0pt; overflow: visible; line-height: 1.333;"> 1
2
3
4
<span style="color: rgb(248, 16, 176);" class="special">5</span>
6</pre></td><td style="padding: 2px; vertical-align: top;" class="code"><div style="background: none repeat scroll 0% 0% rgb(248, 248, 248);" class="highlight"><pre style="width: auto; clear: none; float: none; margin: 0pt; overflow: visible; line-height: 1.333;"><span style="color: rgb(188, 122, 0);">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span>
<span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;query</span> <span style="color: rgb(125, 144, 41);">table=</span><span style="color: rgb(186, 33, 33);">"Bug"</span> <span style="color: rgb(125, 144, 41);">xmlns:xsi=</span><span style="color: rgb(186, 33, 33);">"http://www.w3.org/2001/XMLSchema-instance"</span> <span style="color: rgb(125, 144, 41);">xsi:noNamespaceSchemaLocation=</span><span style="color: rgb(186, 33, 33);">"http://bugfree/query.xsd"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">&gt;</span>
  <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;fields</span> <span style="color: rgb(125, 144, 41);">logic=</span><span style="color: rgb(186, 33, 33);">"OR"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;field</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"BugID"</span> <span style="color: rgb(125, 144, 41);">operator=</span><span style="color: rgb(186, 33, 33);">"EQ"</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"1"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
  <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/fields&gt;</span>
<span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/query&gt;</span>
</pre></div>
</td></tr></tbody></table></div>
 </div>
<div id="rcode" style="display: none;">
<textarea id="ecode" wrap="off" class="code" readonly="true" style="background-color: rgb(255, 255, 255); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;query table="Bug" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://bugfree/query.xsd"&gt;
  &lt;fields logic="OR"&gt;
    &lt;field name="BugID" operator="EQ" value="1"/&gt;
  &lt;/fields&gt;
&lt;/query&gt;
</textarea>
</div>
<div id="bcode" style="display: none;">
<textarea wrap="off" class="code" readonly="true" style="background-color: rgb(255, 255, 255); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
</textarea>
</div>
          <h3>XML Schema</h3>
 <div id="hcode">
 <div style="width: 100%; overflow-y: hidden; overflow-x: auto;" class="highlight_div"><table style="border-collapse: collapse; width: 100%;" class="highlighttable"><tbody><tr><td style="border-right: 1px solid rgb(221, 221, 221); width: 18px; color: gray; overflow: visible; background-color: rgb(221, 238, 255); text-align: right;" class="linenos"><pre style="width: auto; clear: none; float: none; margin: 0pt; overflow: visible; line-height: 1.333;"> 1
 2
 3
 4
<span style="color: rgb(248, 16, 176);" class="special"> 5</span>
 6
 7
 8
 9
<span style="color: rgb(248, 16, 176);" class="special">10</span>
11
12
13
14
<span style="color: rgb(248, 16, 176);" class="special">15</span>
16
17
18
19
<span style="color: rgb(248, 16, 176);" class="special">20</span>
21
22
23
24
<span style="color: rgb(248, 16, 176);" class="special">25</span>
26
27
28
29
<span style="color: rgb(248, 16, 176);" class="special">30</span>
31
32
33
34
<span style="color: rgb(248, 16, 176);" class="special">35</span>
36
37
38
39
<span style="color: rgb(248, 16, 176);" class="special">40</span>
41
42
43
44
<span style="color: rgb(248, 16, 176);" class="special">45</span>
46
47
48
49
<span style="color: rgb(248, 16, 176);" class="special">50</span>
51
52
53
54
<span style="color: rgb(248, 16, 176);" class="special">55</span>
56
57
58
59
<span style="color: rgb(248, 16, 176);" class="special">60</span>
61
62
63
64
</pre></td><td style="padding: 2px; vertical-align: top;" class="code"><div style="background: none repeat scroll 0% 0% rgb(248, 248, 248);" class="highlight"><pre style="width: auto; clear: none; float: none; margin: 0pt; overflow: visible; line-height: 1.333;"><span style="color: rgb(188, 122, 0);">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span>
<span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:schema</span> <span style="color: rgb(125, 144, 41);">xmlns:xs=</span><span style="color: rgb(186, 33, 33);">"http://www.w3.org/2001/XMLSchema"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:element</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"query"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:complexType&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:choice&gt;</span>
                <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:element</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"fields"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"fields"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
                <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:element</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"field"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"field"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:choice&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:attribute</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"table"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"table"</span> <span style="color: rgb(125, 144, 41);">use=</span><span style="color: rgb(186, 33, 33);">"required"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:attribute</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"order"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"xs:string"</span>
                <span style="color: rgb(125, 144, 41);">use=</span><span style="color: rgb(186, 33, 33);">"optional"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:attribute</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"asc"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"xs:boolean"</span> <span style="color: rgb(125, 144, 41);">use=</span><span style="color: rgb(186, 33, 33);">"optional"</span>
                <span style="color: rgb(125, 144, 41);">default=</span><span style="color: rgb(186, 33, 33);">"false"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:attribute</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"page"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"xs:integer"</span>
                <span style="color: rgb(125, 144, 41);">use=</span><span style="color: rgb(186, 33, 33);">"optional"</span> <span style="color: rgb(125, 144, 41);">default=</span><span style="color: rgb(186, 33, 33);">"1"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:attribute</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"size"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"xs:integer"</span>
                <span style="color: rgb(125, 144, 41);">use=</span><span style="color: rgb(186, 33, 33);">"optional"</span> <span style="color: rgb(125, 144, 41);">default=</span><span style="color: rgb(186, 33, 33);">"20"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:complexType&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:element&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:complexType</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"fields"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:sequence&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:element</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"fields"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"fields"</span>
                <span style="color: rgb(125, 144, 41);">minOccurs=</span><span style="color: rgb(186, 33, 33);">"0"</span> <span style="color: rgb(125, 144, 41);">maxOccurs=</span><span style="color: rgb(186, 33, 33);">"unbounded"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:element</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"field"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"field"</span> <span style="color: rgb(125, 144, 41);">minOccurs=</span><span style="color: rgb(186, 33, 33);">"1"</span>
                <span style="color: rgb(125, 144, 41);">maxOccurs=</span><span style="color: rgb(186, 33, 33);">"unbounded"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:sequence&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:attribute</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"logic"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"logic"</span> <span style="color: rgb(125, 144, 41);">use=</span><span style="color: rgb(186, 33, 33);">"required"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:complexType&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:complexType</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"field"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:attribute</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"name"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"xs:string"</span> <span style="color: rgb(125, 144, 41);">use=</span><span style="color: rgb(186, 33, 33);">"required"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:attribute</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"operator"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"operator"</span> <span style="color: rgb(125, 144, 41);">use=</span><span style="color: rgb(186, 33, 33);">"required"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:attribute</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"value"</span> <span style="color: rgb(125, 144, 41);">type=</span><span style="color: rgb(186, 33, 33);">"xs:string"</span> <span style="color: rgb(125, 144, 41);">use=</span><span style="color: rgb(186, 33, 33);">"required"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:complexType&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:simpleType</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"table"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:restriction</span> <span style="color: rgb(125, 144, 41);">base=</span><span style="color: rgb(186, 33, 33);">"xs:string"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"Bug"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"Case"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"Result"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"Project"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"Module"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:restriction&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:simpleType&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:simpleType</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"logic"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:restriction</span> <span style="color: rgb(125, 144, 41);">base=</span><span style="color: rgb(186, 33, 33);">"xs:string"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"OR"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"AND"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:restriction&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:simpleType&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:simpleType</span> <span style="color: rgb(125, 144, 41);">name=</span><span style="color: rgb(186, 33, 33);">"operator"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:restriction</span> <span style="color: rgb(125, 144, 41);">base=</span><span style="color: rgb(186, 33, 33);">"xs:string"</span><span style="color: rgb(0, 128, 0); font-weight: bold;">&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"BETWEEN"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"GT"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"LT"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"GE"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"LE"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"EQ"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"NEQ"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"LIKE"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"NOTLIKE"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"IN"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
            <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;xs:enumeration</span> <span style="color: rgb(125, 144, 41);">value=</span><span style="color: rgb(186, 33, 33);">"NOTIN"</span> <span style="color: rgb(0, 128, 0); font-weight: bold;">/&gt;</span>
        <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:restriction&gt;</span>
    <span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:simpleType&gt;</span>
<span style="color: rgb(0, 128, 0); font-weight: bold;">&lt;/xs:schema&gt;</span>
</pre></div>
</td></tr></tbody></table></div>
 </div>
<div id="rcode" style="display: none;">
<textarea wrap="off" class="code" readonly="true" style="background-color: rgb(255, 255, 255); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xs:element name="query"&gt;
        &lt;xs:complexType&gt;
            &lt;xs:choice&gt;
                &lt;xs:element name="fields" type="fields" /&gt;
                &lt;xs:element name="field" type="field" /&gt;
            &lt;/xs:choice&gt;
            &lt;xs:attribute name="table" type="table" use="required" /&gt;
            &lt;xs:attribute name="order" type="xs:string"
                use="optional" /&gt;
            &lt;xs:attribute name="asc" type="xs:boolean" use="optional"
                default="false" /&gt;
            &lt;xs:attribute name="page" type="xs:integer"
                use="optional" default="1" /&gt;
            &lt;xs:attribute name="size" type="xs:integer"
                use="optional" default="20" /&gt;
        &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
    &lt;xs:complexType name="fields"&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name="fields" type="fields"
                minOccurs="0" maxOccurs="unbounded" /&gt;
            &lt;xs:element name="field" type="field" minOccurs="1"
                maxOccurs="unbounded" /&gt;
        &lt;/xs:sequence&gt;
        &lt;xs:attribute name="logic" type="logic" use="required" /&gt;
    &lt;/xs:complexType&gt;
    &lt;xs:complexType name="field"&gt;
        &lt;xs:attribute name="name" type="xs:string" use="required" /&gt;
        &lt;xs:attribute name="operator" type="operator" use="required" /&gt;
        &lt;xs:attribute name="value" type="xs:string" use="required" /&gt;
    &lt;/xs:complexType&gt;
    &lt;xs:simpleType name="table"&gt;
        &lt;xs:restriction base="xs:string"&gt;
            &lt;xs:enumeration value="Bug" /&gt;
            &lt;xs:enumeration value="Case" /&gt;
            &lt;xs:enumeration value="Result" /&gt;
            &lt;xs:enumeration value="Project" /&gt;
            &lt;xs:enumeration value="Module" /&gt;
        &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;
    &lt;xs:simpleType name="logic"&gt;
        &lt;xs:restriction base="xs:string"&gt;
            &lt;xs:enumeration value="OR" /&gt;
            &lt;xs:enumeration value="AND" /&gt;
        &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;
    &lt;xs:simpleType name="operator"&gt;
        &lt;xs:restriction base="xs:string"&gt;
            &lt;xs:enumeration value="BETWEEN" /&gt;
            &lt;xs:enumeration value="GT" /&gt;
            &lt;xs:enumeration value="LT" /&gt;
            &lt;xs:enumeration value="GE" /&gt;
            &lt;xs:enumeration value="LE" /&gt;
            &lt;xs:enumeration value="EQ" /&gt;
            &lt;xs:enumeration value="NEQ" /&gt;
            &lt;xs:enumeration value="LIKE" /&gt;
            &lt;xs:enumeration value="NOTLIKE" /&gt;
            &lt;xs:enumeration value="IN" /&gt;
            &lt;xs:enumeration value="NOTIN" /&gt;
        &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;
&lt;/xs:schema&gt;
</textarea>
</div>
<div id="bcode" style="display: none;">
<textarea wrap="off" class="code" readonly="true" style="background-color: rgb(255, 255, 255); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
</textarea>
</div>
          <h3>返回示例</h3>
          <p>JSON数据格式:</p>
          <div class="code">{"QueryList":[{"BugID":"1","ProjectID":"20","ProjectName":"\u5e7f\u544a\u7b97\u6cd5","ModuleID":"94","ModulePath":"\/Archived\/QMatch","BugTitle":"XMl\u63a5\u53e3\u7f16\u7801\u5904\u7406\u9519\u8bef","BugSeverity":"3","BugPriority":null,"BugType":"CodeError","BugOS":"All","BugBrowser":"","BugMachine":"","HowFound":" ","ReproSteps":"[\u6b65\u9aa4]\r\n1. \u67e5\u8be2key=\u9c9c\u82b1\uff0c\u4e3autf-8\u7f16\u7801\u3002\r\n2.\u4e0d\u6307\u5b9acharset\u53d8\u91cf\u3002\r\n3. \u53d1\u9001\u67e5\u8be2\u5230are\u5f15\u64ce\u7684xml\u63a5\u53e3\u3002\r\n[\u7ed3\u679c]\r\n\u6ca1\u6709\u7ed3\u679c\u3002\r\n[\u671f\u671b]\r\n\u5e94\u8be5\u53ef\u4ee5\u6b63\u786e\u5904\u7406utf8\u7f16\u7801\u7684\u8f93\u5165\u3002\r\n[\u5907\u6ce8]\r\n\u5982\u679c\u53d1\u9001\u7684gbk\u7f16\u7801\u7684\u201c\u9c9c\u82b1\u201d\uff0c\u5c31\u53ef\u4ee5\u51fa\u73b0\u7ed3\u679c\u3002","BugStatus":"Closed","BugSubStatus":"","LinkID":"","CaseID":"","DuplicateID":"","MailTo":"","OpenedBy":"chunsheng.wang","OpenedDate":"2006-10-08 00:00:00","OpenedBuild":"1.0.20061008","AssignedTo":"Closed","AssignedDate":"2006-10-08 13:59:48","ResolvedBy":"taobao-hz\\zhujun","Resolution":"Fixed","ResolvedBuild":"1.0.20061008","ResolvedDate":"2006-10-08 00:00:00","ClosedBy":"chunsheng.wang","ClosedDate":"2006-10-08 13:59:48","LastEditedBy":"bugfree","LastEditedDate":"2009-10-09 19:04:20","ModifiedBy":",chunsheng.wang,chunsheng.wang,taobao-hz\\zhujun,chunsheng.wang,bugfree,bugfree,","BugKeyword":"","ResultID":null,"CustomField1":"","CustomField2":"","CustomField3":"","IsDroped":"0"}],"size":null,"page":null,"status":"success"}</div>
          <p>CSV数据格式:</p>
          <div class="code">successCVSListsizepage BugID,ProjectID,ProjectName,ModuleID,ModulePath,BugTitle,BugSeverity,BugPriority,BugType,BugOS,BugBrowser,BugMachine,HowFound,ReproSteps,BugStatus,BugSubStatus,LinkID,CaseID,DuplicateID,MailTo,OpenedBy,OpenedDate,OpenedBuild,AssignedTo,AssignedDate,ResolvedBy,Resolution,ResolvedBuild,ResolvedDate,ClosedBy,ClosedDate,LastEditedBy,LastEditedDate,ModifiedBy,BugKeyword,ResultID,CustomField1,CustomField2,CustomField3,IsDroped "1","20","广告算法","94","/Archived/QMatch","XMl接口编码处理错误","3","","CodeError","All","",""," ","[步骤] 1. 查询key=鲜花，为utf-8编码。 2.不指定charset变量。 3. 发送查询到are引擎的xml接口。 [结果] 没有结果。 [期望] 应该可以正确处理utf8编码的输入。 [备注] 如果发送的gbk编码的“鲜花”，就可以出现结果。","Closed","","","","","","chunsheng.wang","2006-10-08 00:00:00","1.0.20061008","Closed","2006-10-08 13:59:48","taobao-hz\zhujun","Fixed","1.0.20061008","2006-10-08 00:00:00","chunsheng.wang","2006-10-08 13:59:48","bugfree","2009-10-09 19:04:20",",chunsheng.wang,chunsheng.wang,taobao-hz\zhujun,chunsheng.wang,bugfree,bugfree,","","","","","","0" 0933bbcc6a3247e7aec61bb4b2ad4def</div>
        </div>
      </div>
      <!-- end getquery div -->
    </div>
  </div>
</body>
</html>